import {ExtractPropTypes, PropType} from "vue";
import {PropsModel} from "/@/api/system/model/CommonModel";

export const selectProps = {
    dict: {
        type: String,
    },
    options: {
        type: [Array,Object]
    },
    toNumber:{
        type: Boolean,
        default: false,
    },
    toStr:{
        type: Boolean,
        default: false,
    },
    props: {
       type: Object as PropType<PropsModel>,
       default: ()=>{
           return {
               label: 'label',
               value: 'value'
           }
       }
    }
}

export type SelectProps = ExtractPropTypes<typeof selectProps>;